# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=liblqr

pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.4.2
pkgrel=2
pkgdesc="A seam-carving C/C++ library called Liquid Rescale (mingw-w64)"
arch=('any')
url="http://liblqr.wikidot.com/"
license=("GPL")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
depends=("${MINGW_PACKAGE_PREFIX}-glib2")
options=('staticlibs' 'strip')
source=("http://liblqr.wikidot.com/local--files/en:download-page/${_realname}-1-$pkgver.tar.bz2")
md5sums=('915643d993da97e10665d48c0bf8f3d0')

build() {
  cd "$srcdir/${_realname}-1-$pkgver"
  mkdir -p build-${MINGW_CHOST} && cd build-${MINGW_CHOST}
  ../configure \
    --prefix=${MINGW_PREFIX} \
    --build=${MINGW_CHOST} \
    --host=${MINGW_CHOST}
  make
}

package() {
  cd "$srcdir/${_realname}-1-$pkgver/build-${MINGW_CHOST}"
  make DESTDIR="$pkgdir" install
}
